package com.buka.goods.service;


import com.buka.server.pojo.ProductDetails;

import java.util.List;

public interface ProductDetailsService {
    List<ProductDetails> findList(Long id);
    Integer add(ProductDetails productDetails);
    Integer update(ProductDetails productDetails);
    Integer delete(Long id);

    /**
     * 减库存
     * @param id
     * @param num
     * @return
     */
    boolean reducedInventory(Long id, Integer num);
    boolean addInventory(Long id, Integer num);
}